package basic.thread.innerclass;

public class InnerClassThread {
	public static void main(String[] args) {

		new Thread() {
			public void run() {
				for (int x = 0; x < 100; x++) {
					System.out.println(Thread.currentThread().getName());
				}
			}
		}.start();

		new Thread(new Runnable() {
			@Override
			public void run() {
				for (int x = 0; x < 100; x++) {
					System.out.println(Thread.currentThread().getName());
				}
			}
		}) {

		}.start();

		new Thread(new Runnable() {
			@Override
			public void run() {
				for (int x = 0; x < 100; x++) {
					System.out.println("hello");
				}
			}
		}) {
			public void run() {
				for (int x = 0; x < 100; x++) {
					System.out.println("word");
				}
			}
		}.start();
	}
}
